import request from '@/utils/request'




export default {
    Listpage(currentPage,pageSize,ExperimentDTO) {
    return request({
      url: `/experiment/Search/${currentPage}/${pageSize}`,
      method: 'post',
      data: ExperimentDTO
    })
  },
  deleteByids(ids) {
    return request({
      url: `/experiment/delete`,
      method: 'post',
      data: ids
    })
  },
  //新增
  add(Experiment) {
    return request({
      url: `/experiment/save`,
      method: 'post',
      data: Experiment
    })
  },
  //修改
  update(Experiment) {
    return request({
      url: `/experiment/update`,
      method: 'post',
      data: Experiment
    })
  },
//  按照id查询
  findeByid(id) {
    return request({
      url: `/experiment/selectByid/${id}`,
      method: 'get',
      data: id
    })
  },
//  按照名称查询
  findeByname(name) {
    return request({
      url: `/trainer/select/${name}`,
      method: 'get',
      data: name
    })
  },

}




